package com.example.fireassistant_server.service;

import com.example.fireassistant_server.dto.Essential.EssentialCreateRequest;
import com.example.fireassistant_server.dto.Essential.EssentialDto;
import com.example.fireassistant_server.dto.Essential.EssentialSearchFilter;
import com.example.fireassistant_server.dto.Essential.EssentialUpdateRequest;
import com.example.fireassistant_server.dto.user.UserSearchFilter;
import com.example.fireassistant_server.entity.Essential;
import org.springframework.data.domain.Page;

import java.nio.channels.FileChannel;
import java.util.List;

public interface EssentialService {

    EssentialDto create(EssentialCreateRequest essentialCreateRequest);

    EssentialDto update(String id, EssentialUpdateRequest essentialUpdateRequest);

    List<EssentialDto> findByKeywordLike(String keyword);

    EssentialDto getById(String id);

    Page<EssentialDto> searchAll(EssentialSearchFilter essentialSearchFilter);

    void deleteById(String id);
}
